package com.ruoyi.web.person.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import javax.persistence.Id;
import javax.persistence.Table;

/**
 * 职员档案对象 person
 * 
 * @author czr
 * @date 2024-10-07
 */
@Table(name="person")
public class Person extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 职员编码 */
    @Id
    @Excel(name = "职员编码")
    private String cPersonCode;

    /** 职员姓名 */
    @Excel(name = "职员姓名")
    private String cPersonName;

    /** 部门编码 */
    @Excel(name = "部门编码")
    private String cDepCode;

    /** 职员属性 */
    @Excel(name = "职员属性")
    private String cPersonProp;

    /** 信用额度 */
    @Excel(name = "信用额度")
    private Long fCreditQuantity;

    /** 信用期限 */
    @Excel(name = "信用期限")
    private Long iCreDate;

    /** 信用等级 */
    @Excel(name = "信用等级")
    private String cCreGrade;

    /** 最低折扣率 */
    @Excel(name = "最低折扣率")
    private Long iLowRate;

    /** 销售贡献等级 */
    @Excel(name = "销售贡献等级")
    private String cOfferGrade;

    /** 销售贡献率 */
    @Excel(name = "销售贡献率")
    private Long iOfferRate;

    /** 时间戳  */
    @Excel(name = "时间戳 ")
    private String pubufts;

    /** Email  */
    @Excel(name = "Email ")
    private String cPersonEmail;

    /** 电话 */
    @Excel(name = "电话")
    private String cPersonPhone;

    /** 生效日期  */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "生效日期 ", width = 30, dateFormat = "yyyy-MM-dd")
    private Date dPValidDate;

    /** 失效日期  */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "失效日期 ", width = 30, dateFormat = "yyyy-MM-dd")
    private Date dPInValidDate;

    public void setcPersonCode(String cPersonCode) 
    {
        this.cPersonCode = cPersonCode;
    }

    public String getcPersonCode() 
    {
        return cPersonCode;
    }
    public void setcPersonName(String cPersonName) 
    {
        this.cPersonName = cPersonName;
    }

    public String getcPersonName() 
    {
        return cPersonName;
    }
    public void setcDepCode(String cDepCode) 
    {
        this.cDepCode = cDepCode;
    }

    public String getcDepCode() 
    {
        return cDepCode;
    }
    public void setcPersonProp(String cPersonProp) 
    {
        this.cPersonProp = cPersonProp;
    }

    public String getcPersonProp() 
    {
        return cPersonProp;
    }
    public void setfCreditQuantity(Long fCreditQuantity) 
    {
        this.fCreditQuantity = fCreditQuantity;
    }

    public Long getfCreditQuantity() 
    {
        return fCreditQuantity;
    }
    public void setiCreDate(Long iCreDate) 
    {
        this.iCreDate = iCreDate;
    }

    public Long getiCreDate() 
    {
        return iCreDate;
    }
    public void setcCreGrade(String cCreGrade) 
    {
        this.cCreGrade = cCreGrade;
    }

    public String getcCreGrade() 
    {
        return cCreGrade;
    }
    public void setiLowRate(Long iLowRate) 
    {
        this.iLowRate = iLowRate;
    }

    public Long getiLowRate() 
    {
        return iLowRate;
    }
    public void setcOfferGrade(String cOfferGrade) 
    {
        this.cOfferGrade = cOfferGrade;
    }

    public String getcOfferGrade() 
    {
        return cOfferGrade;
    }
    public void setiOfferRate(Long iOfferRate) 
    {
        this.iOfferRate = iOfferRate;
    }

    public Long getiOfferRate() 
    {
        return iOfferRate;
    }
    public void setPubufts(String pubufts) 
    {
        this.pubufts = pubufts;
    }

    public String getPubufts() 
    {
        return pubufts;
    }
    public void setcPersonEmail(String cPersonEmail) 
    {
        this.cPersonEmail = cPersonEmail;
    }

    public String getcPersonEmail() 
    {
        return cPersonEmail;
    }
    public void setcPersonPhone(String cPersonPhone) 
    {
        this.cPersonPhone = cPersonPhone;
    }

    public String getcPersonPhone() 
    {
        return cPersonPhone;
    }
    public void setdPValidDate(Date dPValidDate) 
    {
        this.dPValidDate = dPValidDate;
    }

    public Date getdPValidDate() 
    {
        return dPValidDate;
    }
    public void setdPInValidDate(Date dPInValidDate) 
    {
        this.dPInValidDate = dPInValidDate;
    }

    public Date getdPInValidDate() 
    {
        return dPInValidDate;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("cPersonCode", getcPersonCode())
            .append("cPersonName", getcPersonName())
            .append("cDepCode", getcDepCode())
            .append("cPersonProp", getcPersonProp())
            .append("fCreditQuantity", getfCreditQuantity())
            .append("iCreDate", getiCreDate())
            .append("cCreGrade", getcCreGrade())
            .append("iLowRate", getiLowRate())
            .append("cOfferGrade", getcOfferGrade())
            .append("iOfferRate", getiOfferRate())
            .append("pubufts", getPubufts())
            .append("cPersonEmail", getcPersonEmail())
            .append("cPersonPhone", getcPersonPhone())
            .append("dPValidDate", getdPValidDate())
            .append("dPInValidDate", getdPInValidDate())
            .toString();
    }
}
